
<%
	String allCategories = preferences.getValue("Categories", "0");
	String categoriesStyles = preferences.getValue("CategoriesStyles", "0");
	String[] cats = allCategories.split(",");
	String[] catsStyles = categoriesStyles.split(",");
	
	if (cats != null && cats.length > 0) {
%>
<%
		String style = "";
		for (int i = 0; i < cats.length; i++) {
			portletURL.setParameter("selectedCategory", cats[i]);
			if(catsStyles != null && catsStyles.length > i) {
				style = catsStyles[i];
			}
%>
		&nbsp;<a href="<%=selectedCategory.equals(cats[i]) ? StringPool.BLANK: portletURL.toString()%>"><%= ht.get(cats[i]) %></a>&nbsp;|
<%
		}
%>
        <div class="clear"></div>
<%
	}
%>
